# @File    : connect.py
# @Project : Airtest_JBL
from airtest.cli.parser import cli_setup
from airtest.core.api import *

from common.yamlUtil import YamlUtil

conf = YamlUtil("config.yaml").read_yaml()


def connect():
    if not cli_setup():
        auto_setup(__file__, devices=[f"{conf['device']}", ])
